//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using System.ComponentModel;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Validation;
using EntLibContrib.Common.Configuration.Design;

namespace EntLibContrib.Resource.Configuration.Design
{
	/// <summary>
	/// Represents a resource provider. The class is abstract.
	/// </summary>
	[Image(typeof(ResourceProviderBaseNode))]
	[SelectedImage(typeof(ResourceProviderBaseNode))]
	public abstract class ResourceProviderBaseNode : NameSortConfigurationNode
	{
		#region Properties
		/// <summary>
		/// Gets a <see cref="ResourceProviderDataBase"/> configuration object from the nodes data.
		/// </summary>
		/// <value>
		/// A <see cref="ResourceProviderDataBase"/> configuration object from the nodes data.
		/// </value>
		[Browsable(false)]
		public abstract ResourceProviderDataBase ResourceProviderData { get; }

		/// <summary>
		/// Gets the name of the node.
		/// </summary>
		/// <value>The name of the node.</value>
		[UniqueName(typeof(ResourceProviderBaseNode), typeof(ResourceSettingsNode))]
		public override string Name
		{
			get { return base.Name; }
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initialize a new instance of the <see cref="ResourceProviderBaseNode"/> class.
		/// </summary>        
		protected ResourceProviderBaseNode ()
		{
		}
		#endregion
	}
}
